#!/bin/bash
# 编译参数
chmod +x ./configure

# 编译安装
./configure --with-stream  --with-http_ssl_module --prefix=../nginx
if [ $? -ne 0 ] ; then
  echo "缺少依赖请安装相关依赖后再安装!"
  exit
fi

# 编译安装
make -j8
make install

# 静态文件连接到nginx
ln -s ../../vmbox-api/static ../nginx/html